package com.zhentao.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhentao.files.TbFiles;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class FilesDto extends TbFiles {
    private Integer uid;
    private Integer pageSize = 5;
    private Integer pageNum = 1;
    private String title;

    /**
     * 发布日期  开启：publishDateStart
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publishDateStart;
    /**
     * 发布日期  结束：publishDateEnd
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publishDateEnd;

    /**
     * 类型集合
     */
    private List<Integer> typeIds;

}
